package com.zerui.manager.operationrecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zerui.manager.common.entity.BaseMetaDataWithUpdaterEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("设备操作记录")
@Data
@ToString
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_device_operation_record",autoResultMap = true)
public class OperationRecordDo extends BaseMetaDataWithUpdaterEntity {

	@ApiModelProperty("主键，无业务含义")
	@TableId(value="id",type= IdType.ASSIGN_ID)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	@ApiModelProperty("设备id - 关联设备管理id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long deviceId;

	@ApiModelProperty("设备名称")
	private String name;

	@ApiModelProperty(value="设备编码")
	private String code;

	@ApiModelProperty(value="所属产品")
	private String type;

	@ApiModelProperty(value="设备位置")
	private String position;

	@ApiModelProperty(value="操作指令 开门 常开 常闭")
	private String opener;

	@ApiModelProperty(value="ip地址")
	private String ip;



}
